/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package composants;

import java.util.Observable;

/**
 *
 * @author Valentin
 */
public class Levier extends Observable{

	private boolean haut;

	public boolean isHaut() {
		return haut;
	}

	public void setHaut(boolean haut) {
		this.haut = haut;
	}

	public Levier() {
		haut=false;
	}


	public void lever()
	{
		haut=true;
		this.setChanged();
		this.notifyObservers(this.haut);
		System.out.println("levier - lever levier");
		System.out.println("levier monter");
	}

	public void baisser()
	{
		haut=false;
		this.setChanged();
		this.notifyObservers(this.haut);
		System.out.println("levier - baisser levier");    }



}
